<?php
class Bbling_Model_Resource_Company extends Bbling_Model_Resource_Abstract {
	
	protected function _construct() {
		$this->_init ( 'company' );
	}
	
	public function updateCvFiles($object){
	    $datas = $this->getTableData ( $object );
		$db = $this->getReadConnection ();
		$id = null;
		if ($object->id) {
			$businessEntity = new Bbling_Model_Entity_Business ();
			$id = $businessEntity->getTableId($object->id, $this->getMainTable());
			$result = $db->update ( $this->getMainTable (), $datas, 'id = ' . $id );
			return $result;
		}
		
		return false;
	}
}